package com.teradata.olingo.processor.core.api;

import org.apache.olingo.commons.api.ex.ODataException;

import javax.sql.DataSource;

public final class GenericODataCRUDHandler extends GenericODataGetHandler {

  public GenericODataCRUDHandler(String pUnit) throws ODataException {
    super(pUnit);
    getJPAODataContext().setCUDRequestHandler(new GenericDefaultCUDRequestHandler());
  }

  public GenericODataCRUDHandler(final String pUnit, final DataSource ds) throws ODataException {
    super(pUnit, ds);
    getJPAODataContext().setCUDRequestHandler(new GenericDefaultCUDRequestHandler());
  }

  @Override
  public GenericODataCRUDContext getJPAODataContext() {
    return (GenericODataCRUDContext) super.getJPAODataContext();
  }

  class GenericDefaultCUDRequestHandler extends GenericAbstractCUDRequestHandler {

  }
}
